package cg.studio.algorithm.graph;

public class Edge
{
  Point start;
  Point end;
  float distance;
  
  public Edge( Point start, Point end )
  {
    this( start, end, 1 );
  }
  public Edge( Point start, Point end, int distance )
  {
    this.start = start;
    this.end = end;
    this.distance = distance;
  }
  
  @Override
  public int hashCode()
  {
    return start.hashCode() << 16 + end.hashCode();
  }
  
  @Override
  public String toString()
  {
    return start + "--" + distance + "->" + end;
  }
}
